package com.demo.account.util;

import com.demo.account.model.Account;
import com.demo.account.model.AccountVO;

/**
 * @author wuyijie
 * @className: AccountToVo
 * @description: TODO
 * @date 2021/3/30 14:47
 */
public class AccountToVo {
    public static AccountVO accountToVo(Account account){
        if (null == account){
            return null;
        }

        AccountVO accountVO = new AccountVO();
        accountVO.setId(account.getId());
        accountVO.setAccountCode(account.getAccountCode());
        accountVO.setAccountName(account.getAccountName());
        return accountVO;
    }
}
